home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1996 July
/
Macworld (1996-07).dmg
/
System 7.5 Update 2.0
/
FileMaker Pro 3.0 CD Extras
/
FileMaker And Apple Events
/
Syntax Examples
/
Events
/
Create Examples
< prev
next >
Wrap
Text File
|
1996-01-25
|
1KB
|
38 lines
tell application "FileMaker Pro"
--creating records
create record
create record at database 2
create record at first database
create record with data "data"
create record at database 2 with data "test2"
create record at first database with data "test3"
create record with data {"more data", "abc"}
create record at database 2 with data {"test2", "abc"}
create record at first document with data {"test3", "abc"}
create record at database "Test2" with data {"test4", "abc"}
--creating multiple records
repeat 5 times
create record
end repeat
--creating requests
create request
create request with data "test3"
create request with data {"test3", "abc"}
create request with properties {ommitted:true}
create request with data {"test3", "abc"} ¬
with properties {omitted:true}
--creating multiple requests
delete every request
repeat 5 times
create request
end repeat
--creating menus
create menu with properties {name:"Custom Menu", ID:123, enabled:false}
create menu item with properties {name:"Custom Menu Item", ID:321, enabled:true}
end tell